package com.ruoyi.framework.config;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.bstek.uflo.console.UfloServlet;

/**
 * web配置
 * @author xianz
 *
 */
@Configuration
public class WebConfig {

	/**
	 * 添加uflo专用的servlet
	 * @return
	 */
	@Bean
    public ServletRegistrationBean<UfloServlet> servletRegistrationBean1() {
        return new ServletRegistrationBean<UfloServlet>(new UfloServlet(), "/uflo/*");// ServletName默认值为首字母小写，即myServlet
    }
	
}
